import Vue from 'vue'
import { URL_PREFIX } from '@/api/index'

/* /article/admin/auditing/page
查询待审核稿件 */
export const getPendingReviewList = (params) => Vue.http.get(URL_PREFIX + '/article/admin/auditing/page', { params })

/* /article/admin/auditing/add
录入稿件 */
export const pendingReviewManuAdd = (data) => Vue.http.post(URL_PREFIX + '/article/admin/auditing/add', data)

/* /article/admin/auditing/audit
审核稿件 */
export const pendingReviewAudit = (params) =>
  Vue.http.post(URL_PREFIX + '/article/admin/auditing/audit', null, { params })

/* /article/admin/auditing/quota/{organId}
查询指定单位额度 */
export const getOrganQuotaById = (id) => Vue.http.get(URL_PREFIX + '/article/admin/auditing/quota/' + id)
